Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents

Managing the Anti-Alias Style

QuickDraw 3D provides routines that you can use to manage the anti-alias style.

Q3AntiAliasStyle_New

You can use the Q3AntiAliasStyle_New function to create a TQ3StyleObject object. When the object is rendered, it sets the renderer's anti-aliasing style.

TQ3StyleObject Q3AntiAliasStyle_New (
                     TQ3AntiAliasStyleData *aaStyleData);
aaStyleData
A TQ3AntiAliasStyleData structure.
return value
An anti-alias style object.

DESCRIPTION

The Q3AntiAliasStyle_New function returns, in TQ3StyleObject, the anti-alias style object determined by the structure pointed to by aaStyleData.

Q3AntiAliasStyle_Submit

You can use the Q3AntiAliasStyle_Submit function to set the current anti-aliasing mode state in the view.

TQ3Status Q3AntiAliasStyle_Submit (
                     const TQ3AntiAliasStyleData *aaStyleData,
                     TQ3ViewObject view);
aaStyleData
A TQ3AntiAliasStyleData structure.
view
A view.

DESCRIPTION

The Q3AntiAliasStyle_Submit function sets the current anti-aliasing mode state determined by aaStyleData in the view designated by view.

SPECIAL CONSIDERATIONS

You can call the Q3AntiAliasStyle_Submit function while rendering a frame, between the Q3View_StartRendering and Q3View_EndRendering calls. However, many renderers cannot change the state of anti-aliasing while rendering a frame, so only the first call to Q3AntiAliasStyle_Submit may have an effect.

Q3AntiAliasStyle_GetData

You can use the Q3AntiAliasStyle_GetData function to fetch the TQ3AntiAliasStyleData structure currently associated with an anti-alias style object.

TQ3Status Q3AntiAliasStyle_GetData (
                     TQ3StyleObject styleObject,
                     TQ3AntiAliasStyleData *aaStyleData);
styleObject
An anti-alias style object.
aaStyleData
A TQ3AntiAliasStyleData structure.

DESCRIPTION

The Q3AntiAliasStyle_GetData function returns, in the aaStyleData parameter, the current TQ3AntiAliasStyleData structure for the anti-alias style object designated by styleObject.

Q3AntiAliasStyle_SetData

You can use the Q3AntiAliasStyle_SetData function to determine the TQ3AntiAliasStyleData structure currently associated with an anti-alias style object.

TQ3Status Q3AntiAliasStyle_SetData (
                     TQ3StyleObject styleObject,
                     const TQ3AntiAliasStyleData *aaStyleData);
styleObject
An anti-alias style object.
aaStyleData
A TQ3AntiAliasStyleData structure.

DESCRIPTION

The Q3AntiAliasStyle_SetData function sets the TQ3AntiAliasStyleData structure as the current source of anti-alias style control for the anti-alias style object designated by styleObject.

 


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents